﻿using Acme.BookStore.Books;
using Acme.BookStore.CommodityTypess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;

namespace Acme.BookStore
{
    public class CommodityTypeAppService:
     CrudAppService<
           CommodityType, //The Book entity
           CommodityTypeDto, //Used to show books
           int, //Primary key of the book entity
           PagedAndSortedResultRequestDto, //Used for paging/sorting
           CreateUpdateCommodityTypeDto>, //Used to create/update a book
       ICommodityTypeAppService //implement the IBookAppService
    {
        public CommodityTypeAppService(IRepository<CommodityType, int> repository)
            : base(repository)
        {

        }
    }
}
